package com.training1.core.entity;

import org.apache.ibatis.type.Alias;
import org.hibernate.validator.constraints.Length;

import com.training1.core.common.entity.DataEntity;

@Alias("SystemUser")
public class SystemUserEntity extends DataEntity{
	/**
	 * 系统用户
	 */
	private static final long serialVersionUID = 5608799216669341214L;
	
	@Length(min=1,max=20,message="{model.help.error}")
	private String userAccount;
	
	private String userName;
	
	private Integer userRole;
	
	private String password;
	
	private String cellphone;
	
	private Integer validFlag;
	

	public String getUserAccount() {
		return userAccount;
	}

	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}

	public String getuserName() {
		return userName;
	}

	public void setuserName(String userName) {
		this.userName = userName;
	}
	
	public Integer getUserRole() {
		return userRole;
	}

	public void setUserRole(Integer userRole) {
		this.userRole = userRole;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getCellphone() {
		return cellphone;
	}

	public void setCellphone(String cellphone) {
		this.cellphone = cellphone;
	}
	
	public Integer getValidFlag() {
		return validFlag;
	}

	public void setValidFlag(Integer validFlag) {
		this.validFlag = validFlag;
	}

}
